<div class="atenciones index">
	<h2><?php __('Atenciones');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('caso_id');?></th>
			<th><?php echo $this->Paginator->sort('emergencia_medica');?></th>
			<th><?php echo $this->Paginator->sort('ingreso_observacion');?></th>
			<th><?php echo $this->Paginator->sort('fecha_ing_observ');?></th>
			<th><?php echo $this->Paginator->sort('ingreso_diagnostico');?></th>
			<th><?php echo $this->Paginator->sort('egreso_diagnostico');?></th>
			<th><?php echo $this->Paginator->sort('egreso_fecha');?></th>
			<th><?php echo $this->Paginator->sort('tipo_hospitalizacion');?></th>
			<th><?php echo $this->Paginator->sort('hospitalizacion_fecha_ingreso');?></th>
			<th><?php echo $this->Paginator->sort('hospitalizacion_fecha_egreso');?></th>
			<th><?php echo $this->Paginator->sort('hospitalizacion_tiempo');?></th>
			<th><?php echo $this->Paginator->sort('hospitalizacion_diagnostico');?></th>
			<th><?php echo $this->Paginator->sort('curado');?></th>
			<th><?php echo $this->Paginator->sort('fecha_curacion');?></th>
			<th><?php echo $this->Paginator->sort('mejorado');?></th>
			<th><?php echo $this->Paginator->sort('fecha_mejorado');?></th>
			<th><?php echo $this->Paginator->sort('fallecido');?></th>
			<th><?php echo $this->Paginator->sort('fecha_fallecido');?></th>
			<th><?php echo $this->Paginator->sort('causa_fallecido');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($atenciones as $atencion):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $atencion['Atencion']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($atencion['Caso']['id'], array('controller' => 'casos', 'action' => 'view', $atencion['Caso']['id'])); ?>
		</td>
		<td><?php echo $atencion['Atencion']['emergencia_medica']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['ingreso_observacion']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['fecha_ing_observ']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['ingreso_diagnostico']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['egreso_diagnostico']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['egreso_fecha']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['tipo_hospitalizacion']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['hospitalizacion_fecha_ingreso']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['hospitalizacion_fecha_egreso']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['hospitalizacion_tiempo']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['hospitalizacion_diagnostico']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['curado']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['fecha_curacion']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['mejorado']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['fecha_mejorado']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['fallecido']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['fecha_fallecido']; ?>&nbsp;</td>
		<td><?php echo $atencion['Atencion']['causa_fallecido']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $atencion['Atencion']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $atencion['Atencion']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $atencion['Atencion']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $atencion['Atencion']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Atencion', true)), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Casos', true)), array('controller' => 'casos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Caso', true)), array('controller' => 'casos', 'action' => 'add')); ?> </li>
	</ul>
</div>